package com.copyctrl.campus.portal.service;

import com.copyctrl.campus.portal.dto.CommentDTO;
import com.copyctrl.campus.portal.dto.QuestionDTO;
import com.copyctrl.model.CampComment;
import com.copyctrl.model.CampQuestion;

import java.util.List;

/**
 * @author:JH
 * @version:1.0
 */
public interface QuestionService {
    int add(CampQuestion question);
    int delete(Integer question);
    int update(CampQuestion question);
    List<QuestionDTO> find();
    List<CommentDTO> findById(Integer id);
    int saveComment(CampComment comment);
    int deleteComment(Integer id);

    List<QuestionDTO> findByUid(Integer uid);
}
